package user;

import book.BookList;
import operation.Ioperation;

/**
 * Created with IntelliJ IDEA.
 * Description:User类
 * User: LianBao
 * Date: 2024-03-10
 * Time: 12:35
 */
public abstract class User {
    protected String name;

    public abstract int menu();

    protected Ioperation[] operations;

    public void Working(int choice, BookList bookList) {
        this.operations[choice].work(bookList);
    }

    public User(String name) {
        this.name = name;
    }
}
